import pdb
import sys
import requests

mode = sys.argv[1]
if mode == 'dialog':
    user_id = str(127)
    query = '你好'
    answer = requests.get(f'http://localhost:13556/generate?query={query}&user_id={user_id}&mode=dialog').text
    print(answer)
#测试打分
if mode == 'score':
    user_id = str(125)
    answer = requests.get(f'http://localhost:13556/generate?user_id={user_id}&mode=score').text
    print(answer)


